package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * jar包管理
 * </p>
 *
 * @author kutty
 * @since 2018-10-26
 */
@TableName("sys_jar_package")
public class JarPackage extends Model<JarPackage> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * jar包名
     */
    @TableField("jar_name")
    private String jarName;
    /**
     * 函数名
     */
    @TableField("function_name")
    private String functionName;
    /**
     * 参数
     */
    private String param;
    /**
     * 版本
     */
    @TableField("jar_version")
    private Integer jarVersion;
    /**
     * 地址
     */
    private String url;
    /**
     * 密钥
     */
    private String md5;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否使用
     */
    @TableField("is_use")
    private String isUse;
    /**
     * 时间
     */
    private Date date=new Date();

    /**
     * 类名
     * */
    @TableField("jar_class")
    private String jarClass;

    /**
     *是否实例化
     * */
    @TableField("is_instance")
    private String isInstance;

    public String getIsInstance() {
        return isInstance;
    }

    public void setIsInstance(String isInstance) {
        this.isInstance = isInstance;
    }

    /**
     * 排序
     * */
    @TableField("jar_sort")
    private String jarSort;

    /**
     * jar包名
     * */
    @TableField("jar_package_name")
    private String jarPackageName;

    public String getJarPackageName() {
        return jarPackageName;
    }

    public void setJarPackageName(String jarPackageName) {
        this.jarPackageName = jarPackageName;
    }

    public String getJarSort() {
        return jarSort;
    }

    public void setJarSort(String jarSort) {
        this.jarSort = jarSort;
    }

    public String getJarClass() {
        return jarClass;
    }

    public void setJarClass(String jarClass) {
        this.jarClass = jarClass;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getJarName() {
        return jarName;
    }

    public void setJarName(String jarName) {
        this.jarName = jarName;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public Integer getJarVersion() {
        return jarVersion;
    }

    public void setJarVersion(Integer jarVersion) {
        this.jarVersion = jarVersion;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getIsUse() {
        return isUse;
    }

    public void setIsUse(String isUse) {
        this.isUse = isUse;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "JarPackage{" +
        "id=" + id +
        ", jarName=" + jarName +
        ", functionName=" + functionName +
        ", param=" + param +
        ", jarVersion=" + jarVersion +
        ", url=" + url +
        ", md5=" + md5 +
        ", remark=" + remark +
        ", isUse=" + isUse +
        ", date=" + date +
        "}";
    }
}
